package com.zeroone.star.systemhome.service.impl.schedule;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zeroone.star.project.dto.systemhome.ScheduleDTO;
import com.zeroone.star.systemhome.entity.CalEvent;
import com.zeroone.star.systemhome.mapper.schedule.ScheduleMapper;
import com.zeroone.star.systemhome.service.schedule.ScheduleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @BelongsProject: oa-java
 * @BelongsPackage: com.zeroone.star.systemhome.service.impl.schedule
 * @Author: dashuai
 * @CreateTime: 2024-11-18  20:27
 * @Description: 日常接口实现类
 * @Version: 1.0
 */
@Service
public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, CalEvent> implements ScheduleService {
    @Resource
    private ScheduleMapper scheduleMapper;
    @Override
    public List<ScheduleDTO> listScheduleInfo(String id) {
        return scheduleMapper.selectScheduleInfo(id);
    }

    @Override
    public Integer countNumber(String id) {
        return scheduleMapper.count(id);
    }
}
